package cn.touna.jss.common.properties.disconf;

import com.baidu.disconf.client.common.annotations.DisconfFile;
import com.baidu.disconf.client.common.annotations.DisconfFileItem;
import org.springframework.stereotype.Component;

/**
 * Created by Steve.Tao on 2017/11/24.
 */
@Component
@DisconfFile(targetDirPath = "disconf", filename = "pcac.properties")
public class PcacProperties {

    private String memberNo;

    private String queryRiskInfoUrl;

    /**
     * 请求时间间隔
     */
    private int interval;

    /**
     * 查询结果的调用总次数
     */
    private int callCount = 1;

    @DisconfFileItem(name = "pcac.memberNo", associateField = "memberNo")
    public String getMemberNo() {
        return memberNo;
    }

    public void setMemberNo(String memberNo) {
        this.memberNo = memberNo;
    }

    @DisconfFileItem(name = "pcac.queryRiskInfoUrl", associateField = "queryRiskInfoUrl")
    public String getQueryRiskInfoUrl() {
        return queryRiskInfoUrl;
    }

    public void setQueryRiskInfoUrl(String queryRiskInfoUrl) {
        this.queryRiskInfoUrl = queryRiskInfoUrl;
    }

    @DisconfFileItem(name = "pcac.interval", associateField = "interval")
    public int getInterval() {
        return interval;
    }

    public void setInterval(int interval) {
        this.interval = interval;
    }

    @DisconfFileItem(name = "pcac.callCount", associateField = "callCount")
    public int getCallCount() {
        return callCount;
    }

    public void setCallCount(int callCount) {
        this.callCount = callCount;
    }
}
